package com.cq.hd.product.api.vo;

import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class ActiveRedPacketVo implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "商家id")
    private Long businessId;

    @ApiModelProperty(value = "活动id")
    private Long activeId;

    @ApiModelProperty(value = "红包金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal amt;

    @ApiModelProperty(value = "红包标题")
    private String title;

    @ApiModelProperty(value = "活动标题")
    private String activeTitle;

    @ApiModelProperty(value = "红包总数")
    private Integer totalNum;

    @ApiModelProperty(value = "剩余红包总数")
    private Integer remainNum;

    @ApiModelProperty(value = "红包有效期(领取后几天内有效)")
    private Integer validDay;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


    @ApiModelProperty(value = "活动状态（1-未发布，2-未开始，3-进行中，4-已结束）")
    private Integer activeState;

    @ApiModelProperty(value = "活动开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "活动结束时间")
    private LocalDateTime endTime;
}
